<!-- body -->
<div style="background:#fff" <?php if(!$isMobile){echo 'class="container"';}?>>
<div id="carousel-example-generic" class="carousel slide banner-margin" data-ride="carousel">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner" role="listbox">
    <div class="item active">
      <img src="public/img/banner1.jpg" >
    </div>
    <div class="item">
      <img src="public/img/banner2.jpg" >
    </div>
 	<div class="item">
      <img src="public/img/banner3.jpg" >
    </div>
  </div>
<?php if(!$isMobile){ ?>
  <!-- Controls -->
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="fangxiang"><b>〈</b></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="fangxiang"><b>〉</b></span>
  </a>
<?php } ?>
</div>
    <!-- 版面目录 -->
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-9">
            <div class="row column-main">
                <div class="col-sm-6">
                    <div class="ns-module">
                        <div class="module-info clearfix">
                            <div class="module-name l">全站热门</div>
                        </div>
                        <div class="module-content">
                            <ul>
                    <?php if(!$webhot){ ?>
                                <li class="icolor">暂无内容</li>
                    <?php }else{ 
                            foreach($webhot as $webhot_item){ ?>
                                <li>
                                    <a href="module.php?mid=<?php echo $webhot_item['mid']?>">[<?php echo $webhot_item['name']?>]</a>
                                    <a href="details.php?cid=<?php echo $webhot_item['id']?>" class="normal-a">
                                    <?php echo $webhot_item['title']?>
                                    </a>
                                </li>
                        <?php }
                    } ?>           
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="ns-module">
                        <div class="module-info clearfix">
                            <div class="module-name l">校园热点</div>
                            <a class="more hand r margintop" href="module.php?mid=4">更多</a>
                        </div>
                        <div class="module-content">
                            <ul>
                    <?php if(!$schoolhot){ ?>
                                <li class="icolor">暂无内容</li>
                    <?php }else{
                            foreach($schoolhot as $schoolhot_item){ ?>
                                <li>
                                    <a href="details.php?cid=<?php echo $schoolhot_item['id']?>" class="normal-a">
                                    <?php echo $schoolhot_item['title']?>
                                    </a>
                                </li>
                        <?php }   
                     } ?>      
                            </ul>
                        </div>
                    </div>
                </div>
<!-- 分割线 -->
    <?php foreach($data_arr as $item) { ?>
                <div class="col-sm-6">
                    <div class="ns-module">
                        <div class="module-info">
                            <div class="module-name"><?php echo $item['name']?></div>
                            <div class="module-main clearfix">
                                <div class="module-list l">
                     <?php if(!$item['module']){ ?>
                            <span class="icolor">暂无版面</span>
                     <?php }else{
                            $i = 0;
                            foreach($item['module'] as $item2){ ?>
                                    <a href="module.php?mid=<?php echo $item2['id']?>">[<?php echo $item2['name']?>]</a>
                        <?php if(++$i == 5){break;}}   
                     } ?>      
                                </div>
                                <a class="more hand r" href="list.php?zid=<?php echo $item['id']?>">更多</a>
                            </div>
                        </div>
                        <div class="module-content">
                            <ul>
                    <?php if(!$item['content']){?>
                                <li class="icolor">暂无内容</li>
                    <?php }else{
                        foreach($item['content'] as $item3){ ?>       
                                <li>
                                    <a href="module.php?mid=<?php echo $item3['mid']?>">
                                        [<?php echo $item3['name']?>]
                                    </a>
                                    <a href="details.php?cid=<?php echo $item3['id']?>" class="normal-a">
                                        <?php echo $item3['title']?>
                                    </a>
                                </li>
                        <?php } 
                    } ?>    
                            </ul>
                        </div>
                    </div>
                </div>
    <?php } ?>
            </div>
        </div>
        <div class="col-sm-3">
            <div class="ns-module column-second">
                <div class="module-info clearfix">
                    <div class="module-name l">热门版面</div>
                </div>
                <div class="module-content">
                    <ul>
            <?php if(!$banhot){ ?>
                        <li class="icolor">暂无内容</li>
            <?php }else{
                    foreach($banhot as $banhot_item){ ?>
                        <li>
                            <a href="module.php?mid=<?php echo $banhot_item['id']?>" class="normal-a">
                                <?php echo $banhot_item['name'] ?>
                                &nbsp;
                                <small><?php echo $banhot_item['info']?></small>
                            </a>
                        </li>
                <?php }   
            } ?>      
                        
                    </ul>
                </div>
            </div>
            <div class="ns-module column-second">
                <div class="module-info clearfix">
                    <div class="module-name l">失物招领</div>
                    <a class="more hand r margintop" href="module.php?mid=5">更多</a>
                </div>
                <div class="module-content">
                    <ul>
            <?php if(!$lost){ ?>
                        <li class="icolor">暂无内容</li>
            <?php }else{
                    foreach($lost as $lost_item){ ?>
                        <li>
                            <a href="details.php?cid=<?php echo $schoolhot_item['id']?>" class="normal-a">
                            <?php echo $lost_item['title']?>
                            </a>
                        </li>
                <?php }   
            } ?>      
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script  src="public/js/jquery.min.js"></script>
<script  src="public/js/my-bootstrap.min.js"></script>
<script async src="public/js/home.all.js"></script>